package com.itheima.reggie;

/**
 * @Classname WebManageApplication
 * @Description TODO
 * @Date 2023/3/1 11:21
 * @Created by 11404
 */


import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@Slf4j     //日志
@SpringBootApplication // 启动类
@MapperScan("com.itheima.reggie.mapper")// 扫描mybatis接口创建代理对象
@EnableTransactionManagement // 开启事务注解支持
@EnableCaching   //开启基于注解的缓存   SpringCache通过AOP底层技术结合Redis简化缓存配置
public class WebManageApplication {

    public static void main(String[] args) {

        SpringApplication.run(WebManageApplication.class, args);  //这个是Boot项目启动类固定方法

        log.info("项目启动成功");
    }
}